####################################################################
#   参考 ffmpeg 制作
#
#
#
#####################################################################




# 实体依赖
# -shared -fPIC 可以用于生成动态库或这静态库
#
dep_file = .$@.d
$(OUTDIR)%.o : $(TOPDIR)%.c
	$(if $(KBUILD_VERBOSE:0=), @echo                    $(notdir $(<:.c=.o))) 
	@mkdir -p $(dir $@)
	$(if $(KBUILD_VERBOSE:1=), @) $(CC) -shared -fPIC  $(CFLAGS) $(IFLAGS) -c -o $@ $<

$(OUTDIR)%.o : $(TOPDIR)%.cpp
	$(if $(KBUILD_VERBOSE:0=), @echo                    $(notdir $(<:.c=.o))) 
	@mkdir -p $(dir $@)
	$(if $(KBUILD_VERBOSE:1=), @)  $(CPP) -shared -fPIC  $(CPPFLAGS) $(IFLAGS) -c -o $@ $<

$(OUTDIR)%.o : $(TOPDIR)%.cc
	$(if $(KBUILD_VERBOSE:0=), @echo                    $(notdir $(<:.c=.o)))
	@mkdir -p $(dir $@) 
	$(if $(KBUILD_VERBOSE:1=), @)  $(CPP) -shared -fPIC  $(CPPFLAGS) $(IFLAGS) -c -o $@ $<

$(OUTDIR)%.s : $(TOPDIR)%.c
	$(if $(KBUILD_VERBOSE:0=), @echo                    $(notdir $(<:.c=.o))) 
	@mkdir -p $(dir $@) 
	$(if $(KBUILD_VERBOSE:1=), @)  $(CPP)  $(CFLAGS) $(IFLAGS) -c -o $@ $<
